package com.twu.biblioteca;


//
//Lis<Animal> l = new ArrayLis<Animal>();
//
//        if a instanceof Cachorro


/**
 * Created by jrocha on 9/30/14.
 */
public class Movie extends ItemLibrary{
    public Movie(int id, String name, int year, String director, int movieRating) {
        super(id,name,year);

        this.director = director;
        this.movieRating = movieRating;
    }

    public String getDirector() {
        return director;
    }

    public int getMovieRating() {
        return movieRating;
    }

    public String toString() {
        String id = Integer.toString(getId());
        String movieRating = Integer.toString(getMovieRating());

        return id + " - " + getName() + " - " + getDirector() + " - " + getYear() + " - " + movieRating;
    }

    private String director;
    private int movieRating;
}
